#ifndef CWORKER_REDIS_CFG_H_
#define CWORKER_REDIS_CFG_H_

#include "wtk/core/cfg/wtk_local_cfg.h"

#ifdef __cplusplus
extern "C" {
#endif

typedef struct cworker_redis_cfg {
    wtk_string_t host;
    uint16_t port;
    uint8_t db;
    wtk_string_t password;
} cworker_redis_cfg_t;

int cworker_redis_cfg_init(cworker_redis_cfg_t *);
int cworker_redis_cfg_clean(cworker_redis_cfg_t *);
int cworker_redis_cfg_update_local(cworker_redis_cfg_t *, wtk_local_cfg_t *);
int cworker_redis_cfg_update(cworker_redis_cfg_t *);

#ifdef __cplusplus
};
#endif
#endif
